<template>
  <div class="pub_container pub_bgColorFFF p20">
    <div class="pub_innerTitle pb13">
      修改密码
    </div>
    <div class="login_container mt20 ml40">
      <div class="login_container_formContent">
        <el-form ref="form" class="login_form" :model="params" label-width="5rem">
          <el-form-item prop="phone" label="手机号">
            <el-input v-model="params.phone" placeholder="请输入手机号" clear="pub_input  pub_input_search" :maxlength="11">
              <img slot="prefix" src="@/assets/img/loginRegister/user.png" class="pub_imgSize16" />
            </el-input>
          </el-form-item>
          <el-form-item prop="verifyCode" class="verifyCode" label="验证码">
            <div class="flex_space_between">
              <el-input v-model="params.verifyCode" placeholder="请输入验证码" clear="pub_input  pub_input_search" :maxlength="6"> </el-input>
              <div class="verifyLabel  w100" :class="{ grayLabel: countdown > 0 }" @click="sendCode">{{ verifyLabel }}</div>
            </div>
          </el-form-item>
          <el-form-item prop="password" label="设置密码">
            <el-input v-model="params.password" :type="isShowPas ? 'text' : 'password'" placeholder="请输入密码" class="pub_input   pub_input_search" :maxlength="15">
              <img slot="prefix" src="@/assets/img/loginRegister/password.png" class="pub_imgSize16" />
              <img v-show="!isShowPas" slot="suffix" src="@/assets/img/loginRegister/lookPassword.png" class="pub_imgSize16" @click="showPassword('isShowPas')" />
              <img v-show="isShowPas" slot="suffix" src="@/assets/img/loginRegister/closePassword.png" class="pub_imgSize16" @click="showPassword('isShowPas')" />
            </el-input>
          </el-form-item>
          <el-form-item prop="passwordAgain" label="确认密码">
            <el-input v-model="params.passwordAgain" :type="isShowPasAgain ? 'text' : 'password'" placeholder="请再次输入密码" class="pub_input   pub_input_search" :maxlength="15">
              <img slot="prefix" src="@/assets/img/loginRegister/password.png" class="pub_imgSize16" />
              <img v-show="!isShowPas" slot="suffix" src="@/assets/img/loginRegister/lookPassword.png" class="pub_imgSize16" @click="showPassword('isShowPasAgain')" />
              <img v-show="isShowPas" slot="suffix" src="@/assets/img/loginRegister/closePassword.png" class="pub_imgSize16" @click="showPassword('isShowPasAgain')" />
            </el-input>
          </el-form-item>
        </el-form>
        <el-button type="text" class="mt24 pub_button login_button" @click="register">
          确认
        </el-button>
      </div>
    </div>
  </div>
</template>
<script>
import modifyPassword from '@/mixin/modifyPassword';
export default {
  mixins: [modifyPassword],
  data() {
    return {};
  },
  mounted() {},
  methods: {}
};
</script>
<style lang="less" scoped>
.login_container {
  width: auto;
  height: auto;
}
.verifyLabel {
  color: #27c1a5;
  font-size: 14px;
  cursor: pointer;
  text-align: right;
}
.grayLabel.verifyLabel {
  color: rgba(0, 0, 0, 0.4);
}
.verifyCode {
  ::v-deep .el-input {
    width: 300px;
  }
}
.login_button {
  width: 200px;
  margin-left: 80px;
}
</style>
